from qcloud_cos import CosConfig
from qcloud_cos import CosS3Client


secret_id = 'AKIDHVXKsAE3dy5yc1C8uTnsjLisnUx0vc5K'
secret_key = '3rRo1zkGZdS3QYSCi04tUrzsZ2HKAC1b'
region = 'ap-beijing'

config = CosConfig(Region=region, SecretId=secret_id, SecretKey=secret_key)
client = CosS3Client(config)

response = client.create_bucket(
    Bucket='test-1339193718',
    ACL='public-read'#private/pubic-read/public-read-write
)